<!-- Begin hrmd/event_list.tpl -->
<form method="post" action="?module=hrmd&action=event_list&submit=true">
{opentable}
{titlebar colspan=2 title=$lg->hre_list}
<tr>{$perio}</tr>
<tr>{$team}</tr>
<tr>{$idusr}</tr>
{closetable}
<input type="submit" name="submit" class="button" align="left" value={$lg->OK} />
</form>
<br>
{opentable}
	<tr class="sectiontableheader" align="center">
		<td width = "15%"><a href="{$url}&sort=vtext{if $smarty.get.sort eq "vtext" and $smarty.get.sens ne "true"}&sens=true{/if}">{$lg->hretp}</a></td>
		<td width = "15%"><a href="{$url}&sort=username{if $smarty.get.sort eq "username" and $smarty.get.sens ne "true"}&sens=true{/if}">{$lg->user}</a></td>
		<td width = "10%">{$lg->cdate}</td>
		<td width = "20%">{$lg->comment}</td>
		<td width = "5%">{$lg->status}</td>
		<td width = "5%">{$lg->edit}</td>		
	</tr>
	{if is_array($t_hr01)}
	{foreach from=$t_hr01 item=s_hr01}
	<tr class="{rowcolor}" align="center">
		<td>{$s_hr01.vtext}</td>
		<td>{username id=$s_hr01.idusr}</td>
		<td>{$s_hr01.cdate|userdate}</td>
		<td>{$s_hr01.ctext}</td>
		<td>{if $s_hr01.stats > 0}
				<img src="{$smarty.env.imgs.email_sent}" border="0" alt="Send Mail" >	
			{else} 
			<a href="?module=hrmd&action=event_send&hreid={$s_hr01.hreid}">
				<img src="{$smarty.env.imgs.email}" border="0" alt="Send Mail" >
			</a>
			{/if}
		</td>
		<td><a href="?module=hrmd&action=event_create&hreid={$s_hr01.hreid}"><img src="{$smarty.env.imgs.edit}" border="0" alt="Edit" ></a></td>
	</tr>
	{/foreach}
	{else}
		<tr class="data"><td colspan="6">{$lg->no_data}</td></tr>	
	{/if}
{closetable}
<!-- End hrmd/event_list.tpl -->